package dst1.model;

import java.io.Serializable;

import javax.persistence.CascadeType;
import javax.persistence.Entity;
import javax.persistence.Id;
import javax.persistence.JoinColumn;
import javax.persistence.OneToOne;

@Entity
public class Job implements Serializable {

	/**
	 * 
	 */
	private static final long serialVersionUID = 1L;
	private Long id;
	private int numCPUs;
	private int executionTime;
	private boolean isPaid;
	
//	@OneToOne (cascade=CascadeType.ALL)
//	@JoinColumn(name="Environment_ID")
//	private Environment environment;
	
	@Id
	public Long getID() { return this.id; }
	public void setID(Long id) {this.id = id; }
	
	public int getNumCPUs() { return this.numCPUs; }
	public void setNumCPUs(int numCPUs) { this.numCPUs = numCPUs; }
	
	public void setExecutionTime(int executionTime) {
		this.executionTime = executionTime;
	}
	public int getExecutionTime() {
		return executionTime;
	}
	public void setPaid(boolean isPaid) {
		this.isPaid = isPaid;
	}
	public boolean getIsPaid() {
		return isPaid;
	}
//	public void setEnvironment(Environment environment) {
//		this.environment = environment;
//	}
//	public Environment getEnvironment() {
//		return environment;
//	}
}
